package com.yuda.tools.checkanswer.service;

import com.yuda.tools.checkanswer.dto.LogContext;
import com.yuda.tools.checkanswer.dto.LogNotFound;
import com.yuda.tools.checkanswer.dto.StudentLog;

import java.util.LinkedHashMap;
import java.util.List;

public interface CheckLogService {

    String checkLog(Integer paperId) throws InterruptedException;

    LinkedHashMap<String, List<LogContext>> searchFromLog(String studentId, Integer paperId, Integer subjectId);

    List<LogNotFound> listLogsNotFind(LogNotFound logNotFound);

    List<String> searchCommonExamRoom(String key);

    String findMaxTimeArea(StudentLog studentLog, Integer paperId);

    //包含最大时间
    String[] findMaxTimeAreaAndTime(StudentLog studentLog, Integer paperId);

    void copy(Integer paperId, String subjectId, StudentLog studentLog, String maxTimeArea);

    List<LogContext> searchFromLogWithPcNo(String studentId, Integer paperId, Integer subjectId, String pcNo);
}
